package com.ax.center.service;

import com.ax.center.dto.ApiResponse;
import com.ax.center.dto.NewUserDTO;
import com.ax.center.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author zy
 * @date 2023/7/4 11:09
 */

public interface UsersService extends IService<Users> {

    @ApiOperation(value = "校验账号接口")
    public Users checkPW(Long id,String password);


    public ApiResponse updatePW(Long id,String newPW);

    public ApiResponse queryUserByDeName(String departmentName);

    public ApiResponse queryUserByName(String name);

    public ApiResponse queryAllDeName();

    public ApiResponse queryByStaffId(Long staffId);

    public ApiResponse queryAll();

    public ApiResponse insertUser(NewUserDTO newUserDTO);

    public ApiResponse deleteUser(Long satffId);

    public ApiResponse getAllStaffsWithRoleAndAuth();
    public ApiResponse getAllRolesWithStaffInfo();

    public  ApiResponse getStaffInfoByRoleName(String roleName);

    public ApiResponse getStaffInfoByDeName(String deName);

    public ApiResponse getStaffInfoByUserName(String userName);

    public ApiResponse updateDeName(Long staffId,String deName);


    public ApiResponse getStaffInfoByStaffId(Long staffId);

    public ApiResponse getUserDetailsByStaffId(Long staffId);




}
